package com.powernode.feign.sentinel;

import com.powernode.constant.BusinessEnum;
import com.powernode.domain.Basket;
import com.powernode.feign.OrderCartFeign;
import com.powernode.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 *
 */
@Component
@Slf4j
public class OrderCartFeignSentinel implements OrderCartFeign {
    @Override
    public Result<List<Basket>> getBasketListByIds(List<Long> ids) {
        log.error("远程调用失败：根据购物车id集合查询购物车记录");
        return Result.fail(BusinessEnum.OPERATION_FAIL);
    }

    @Override
    public Result<Boolean> removeBasketByOpenIdAndSkuIds(Map<String, Object> params) {
        log.error("远程调用失败：根据会员标识和商品skuId集合删除购物车记录");
        return Result.fail(BusinessEnum.OPERATION_FAIL);
    }
}
